package cn.com.stums.form.inbound;

import java.sql.Timestamp;
import java.util.List;

import cn.com.stums.model.inbound.InBoundListDetail;
import cn.com.stums.util.DateUtil;
import cn.com.stums.util.StumsWebContent;
import cn.com.stums.view.inbound.viewQueryInbound;

public class StoreInboundAdjustForm {
	private Integer stInboundId;
	private String stInboundAppNumber;
	private String stLink;
	private String stInboundBusType;
	private String stInboundType;
	private String stStartTime;
	private String stEndTime;
	private String stInboundState;
	private String stExector;
	private String stInboundNo;
	private String stRemark;
	private String stCreateTime;
	private String stCreater;
	private String stModifyTime;
	private String stModifier;
	
	private List<InboundDetailForm> stInboundList;

	public Integer getStInboundId() {
		return stInboundId;
	}

	public void setStInboundId(Integer stInboundId) {
		this.stInboundId = stInboundId;
	}

	public String getStInboundAppNumber() {
		return stInboundAppNumber;
	}

	public void setStInboundAppNumber(String stInboundAppNumber) {
		this.stInboundAppNumber = stInboundAppNumber;
	}

	public String getStInboundBusType() {
		return stInboundBusType;
	}

	public void setStInboundBusType(String stInboundBusType) {
		this.stInboundBusType = stInboundBusType;
	}

	public String getStInboundType() {
		return stInboundType;
	}

	public void setStInboundType(String stInboundType) {
		this.stInboundType = stInboundType;
	}

	public String getStStartTime() {
		return stStartTime;
	}

	public void setStStartTime(String stStartTime) {
		this.stStartTime = stStartTime;
	}

	public String getStEndTime() {
		return stEndTime;
	}

	public void setStEndTime(String stEndTime) {
		this.stEndTime = stEndTime;
	}

	public String getStInboundState() {
		return stInboundState;
	}

	public void setStInboundState(String stInboundState) {
		this.stInboundState = stInboundState;
	}

	public String getStExector() {
		return stExector;
	}

	public void setStExector(String stExector) {
		this.stExector = stExector;
	}

	public String getStInboundNo() {
		return stInboundNo;
	}

	public void setStInboundNo(String stInboundNo) {
		this.stInboundNo = stInboundNo;
	}

	public String getStRemark() {
		return stRemark;
	}

	public void setStRemark(String stRemark) {
		this.stRemark = stRemark;
	}

	public String getStCreateTime() {
		return stCreateTime;
	}

	public void setStCreateTime(String stCreateTime) {
		this.stCreateTime = stCreateTime;
	}

	public String getStCreater() {
		return stCreater;
	}

	public void setStCreater(String stCreater) {
		this.stCreater = stCreater;
	}

	public String getStModifyTime() {
		return stModifyTime;
	}

	public void setStModifyTime(String stModifyTime) {
		this.stModifyTime = stModifyTime;
	}

	public String getStModifier() {
		return stModifier;
	}

	public void setStModifier(String stModifier) {
		this.stModifier = stModifier;
	}

	public List<InboundDetailForm> getStInboundList() {
		return stInboundList;
	}

	public void setStInboundList(List<InboundDetailForm> stInboundList) {
		this.stInboundList = stInboundList;
	}

	public String getStLink() {
		return stLink;
	}

	public void setStLink(String stLink) {
		this.stLink = stLink;
	}
	
	public static void inboundQueryFormList(List formList,List result){
		if(result !=null && result.size() > 0){
			for(int i=0 ; i < result.size(); i ++){
				viewQueryInbound bean = (viewQueryInbound) result.get(i);
				StoreInboundAdjustForm inboundForm = new StoreInboundAdjustForm();
				inboundForm.setStInboundId(bean.getStInboundId());                                        
				inboundForm.setStInboundAppNumber(bean.getStInboundAppNumber());      
				inboundForm.setStLink(bean.getStLink());
				inboundForm.setStInboundBusType(bean.getStInboundBusType());                              
				inboundForm.setStInboundType(bean.getStInboundType());                                   
				inboundForm.setStStartTime(DateUtil.TimestampToString(bean.getStStartTime(),StumsWebContent.DATEFORMAT));                                       
				inboundForm.setStEndTime(DateUtil.TimestampToString(bean.getStEndTime(),StumsWebContent.DATEFORMAT));                                            
				inboundForm.setStInboundState(bean.getStInboundState());                                  
				inboundForm.setStExector(bean.getStExector());                                            
				inboundForm.setStInboundNo(bean.getStInboundNo());                                        
				inboundForm.setStRemark(bean.getStRemark());                                              
				inboundForm.setStCreateTime(DateUtil.TimestampToString(bean.getStCreateTime(),StumsWebContent.DATEFORMAT));                                      
				inboundForm.setStCreater(bean.getStCreater());                                            
				inboundForm.setStModifyTime(DateUtil.TimestampToString(bean.getStModifyTime(),StumsWebContent.DATEFORMAT));                                      
				inboundForm.setStModifier(bean.getStModifier());  
				formList.add(inboundForm);
			}
		}else{
			formList = null;
		}
	}
	
}
